arm/efi: Improve performance requesting filesystem handle
authorLuca Fancellu <luca.fancellu@arm.com>
Tue, 16 Nov 2021 15:06:24 +0000 (15:06 +0000)
committerJulien Grall <jgrall@amazon.com>
Wed, 1 Dec 2021 16:40:19 +0000 (16:40 +0000)
commit9012687f05adf96440316ce338514db574ebfde0
tree0cf6e5757087ea922fe73ad9db3be896c4949f44
parentad9cf6bde5b90d4c1e5a79a2803e98d6344c27d7
arm/efi: Improve performance requesting filesystem handle

Currently, the code used to handle and possibly load from the filesystem
modules defined in the DT is allocating and closing the filesystem handle
for each module to be loaded.

To improve the performance, the filesystem handle pointer is passed
through the call stack, requested when it's needed only once and closed
if it was allocated.

Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/efi/efi-boot.h